"""Changed address column type

Revision ID: 175e0449ebd5
Revises: 8091d06731af
Create Date: 2023-10-24 17:27:57.019043

"""
import sqlalchemy as sa
from alembic import op

# revision identifiers, used by Alembic.
revision = "175e0449ebd5"
down_revision = "8091d06731af"
branch_labels = None
depends_on = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "order",
        "shipping_address",
        existing_type=sa.VARCHAR(),
        type_=sa.TEXT(),
        existing_nullable=True,
    )
    op.alter_column(
        "user",
        "address",
        existing_type=sa.VARCHAR(),
        type_=sa.TEXT(),
        existing_nullable=True,
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "user",
        "address",
        existing_type=sa.TEXT(),
        type_=sa.VARCHAR(),
        existing_nullable=True,
    )
    op.alter_column(
        "order",
        "shipping_address",
        existing_type=sa.TEXT(),
        type_=sa.VARCHAR(),
        existing_nullable=True,
    )
    # ### end Alembic commands ###
